package com.purchase.ml.enums;

/**
 * Created by kyyang on 2020/12/31 12:52
 */
public enum OrderStatusEnum {
    //    0:待付款；1:已支付；2已发货；3：配送中；4：已送达；5已签收;-1 已删除;-2 已取消
    UNPAID(0,"Menunggu Pembayaran"),
    PAID(1,"Pembayaran Lengkap"),
    DELIVERED(2,"Mula Penghantaran"),
    TRABSIT(3,"Dalam Penghantaran"),
    REACHED(4,"Ketibaan"),
    SIGNED(5,"Diterima"),
    DELETE(-1,"Dihapuskan"),
    CANCEL(-2,"Dibatalkan");

    private Integer code;

    private String desc;

    OrderStatusEnum(Integer code, String desc){
        this.code= code;
        this.desc=desc;
    }


    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

}
